//
//  LeftViewController.m
//  1227-163MusicDemo
//
//  Created by 千锋 on 15/12/27.
//  Copyright (c) 2015年 千锋. All rights reserved.
//

#import "LeftViewController.h"
#define SCREEN_SIZE [UIScreen mainScreen].bounds.size



@interface LeftViewController ()
- (IBAction)backClicked:(UIButton *)sender;

@end

@implementation LeftViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.5];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (IBAction)backClicked:(UIButton *)sender {
    NSLog(@"我的点击了");
}

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
    NSLog(@"touches Began:");
    [UIView animateWithDuration:0.35 animations:^{
        self.view.frame = CGRectMake(-SCREEN_SIZE.width, 0, SCREEN_SIZE.width, SCREEN_SIZE.height);
    }];
}
@end
